package com.example.lotterysystem.controller.param;

import lombok.Data;

import java.io.Serializable;

/**
 * @auther falls_vc
 * description:
 * @date 2025/5/27  8:34
 */
@Data
public class PageParam implements Serializable {
    /**
     * 当前页
     */
    private Integer currentPage = 1;
    /**
     * 页大小
     */
    private Integer pageSize = 10;

    /**
     * 获取偏移量
     * @return
     */
    public Integer offset() {
        return (currentPage-1)*pageSize;
    }
}
